package com.example.activity_service.service.impl;

import com.example.activity_service.dao.Prizesdao;
import com.example.activity_service.service.PrizesService;
import com.example.activity_service.vo.Draw;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PrizesServiceImpl implements PrizesService {
    @Autowired
    Prizesdao prizesdao;
    @Override
    public List<Draw> draws() {
        return prizesdao.draws ();
    }

    //新增
    @Override
    public int recharge(int users,String redenvelopes,Double parvalue) {
        return prizesdao.recharge (users,redenvelopes,parvalue);
    }
}
